package com.kookapi.asserts.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author bairimengchang
 * @version 1.0
 * @project java-test
 * @description 自定义断言结果封装
 * @date 2025/9/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AssertionResult {
    private boolean success;
    private String message;

    // 快速创建成功/失败结果的静态方法
    public static AssertionResult success(String message) {
        return new AssertionResult(true, message);
    }

    public static AssertionResult failure(String message) {
        return new AssertionResult(false, message);
    }
}
